// var contextPath=window.location.origin+'/carweb2_war_exploded'+(window.location.pathname.split('/')[1])+'/';
// var contextPath = window.location.origin +"/carweb2" + window.location.pathname.split("/")[1] +  "/";
var contextPath=window.location.origin+'/'+(window.location.pathname.split('/')[1])+'/';
export default {
  searchDevice: {
    name: "搜索设备",
    path: contextPath + "v2/device/globalSearch.action",
    param: [
      { name: "baseUserId", type: "Number" },
      { name: "key", type: "String" },
      { name: "overflow", type: "Number" }
    ]
  }, //Integer userId, String key,Integer overflow
  searchUser: {
    name: "搜索用户",
    path: contextPath + "v2/user/globalSearch.action",
    param: [
      { name: "baseUserId", type: "Number" },
      { name: "key", type: "String" },
      { name: "overflow", type: "Number" }
    ]
  }, //Integer userId,String key, Integer overflow
  getMsgs: {
    name: "报警信息",
    path: contextPath + "v2/alert/api/getMsgs.action",
    param: [
      { name: "page", type: "Number" },
      { name: "pageSize", type: "Number" },
      { name: "nrOnly", type: "Boolean" }
    ]
  }, //int page, int pageSize, boolean nrOnly,Integer hasVoice
  getInnerMsgIn7Days: {
    name: "消息列表",
    path: contextPath + "v2/alert/api/getInnerMsgIn7Days.action",
    param: [{ name: "userId", type: "Number" }]
  }, //Integer userId

  getSimList: {
    name: "sim列表",
    path: contextPath + "v2/simcard/getAllSimCard.action",
    param: [
      { name: "pageNo", type: "Number" },
      { name: "pageSize", type: "Number" }
    ]
  },
  searchSim: {
    name: "搜索SIM",
    path: contextPath + "v2/simcard/searchSimCard.action",
    param: [
      { name: "pageNo", type: "Number" },
      { name: "pageSize", type: "Number" },
      { name: "key", type: "String" }
    ]
  },

  appoint: {
    name: "预约列表",
    path: contextPath + "presell/all.action",
    param: []
  },
  userTreeExpand: {
    name: "用户树",
    path: contextPath + "v2/monitor/api/uexpand.action",
    param: [{ name: "userId", type: "Number" }]
  }, //userId

  getChildUsers: {
    name: "子账号",
    path: contextPath + "v2/customer/api/getChildUsers.action",
    param: [
      { name: "userId", type: "Number" },
      { name: "page", type: "Number" },
      { name: "pageSize", type: "Number" }
    ]
  }, //userId pageSize page
  getDevs: {
    name: "设备",
    path: contextPath + "v2/customer/api/getDevs.action",
    param: [
      { name: "userId", type: "Number" },
      { name: "page", type: "Number" },
      { name: "pageSize", type: "Number" },
      { name: "dispLv", type: "String" },
      { name: "tFilt", type: "Boolean" },
      { name: "tFrom", type: "Timestamp" },
      { name: "tTo", type: "Timestamp" },
      { name: "alreadyExpire", type: "Number" }
    ]
  }, //userId dispLv tFilt tFrom tTo pageSize page alreadyExpire
  searchInUser: {
    name: "搜索用户的设备",
    path: contextPath + "v2/customer/api/searchInUser.action",
    param: [
      { name: "userId", type: "Number" },
      { name: "pageNo", type: "Number" },
      { name: "pageSize", type: "Number" },
      { name: "key", type: "String" }
    ]
  }, //key userId page pageSize

  userRelation: {
    name: "用户关系",
    path: contextPath + "v2/user/relation1.action",
    param: [{ name: "userId", type: "Number" }]
  }, //userId
  deviceRelation: {
    name: "设备关系",
    path: contextPath + "v2/device/relation1.action",
    param: [{ name: "deviceImei", type: "String" }]
  }, //String deviceImei
  commandRecord: {
    name: "指令记录",
    path: contextPath + "v2/device/api/cmdHist.action",
    param: [
      { name: "deviceImei", type: "String" },
      { name: "page", type: "Number" },
      { name: "pageSize", type: "Number" }
    ]
  }, //deviceImei page pageSize
  getAuditQueue: {
    name: "待执行充值列表",
    path: contextPath + "v2/pay/api/getAuditQueue.action",
    param: [
      { name: "status", type: "Number" },
      { name: "page", type: "Number" },
      { name: "pageSize", type: "Number" }
    ]
  }, //pageSize page status
  getPolicyType: {
    name: "保单类型",
    path: contextPath + "v2/device/edit/policy1.action",
    param: []
  },

  allInsurance: {
    name: "保单列表",
    path: contextPath + "/v2/policy/api/globalSearch.action",
    param: [
      { name: "tInstallFrom", type: "Timestamp" },
      { name: "tInstallTo", type: "Timestamp" },
      { name: "page", type: "Number" },
      { name: "pageSize", type: "Number" }
    ]
  },
  insuranceList: {
    name: "保单列表",
    path: contextPath + "v2/policy/api/globalSearch.action",
    param: [
      { name: "userId", type: "Number" },
      { name: "custName", type: "String" },
      { name: "frameId", type: "String" },
      { name: "policyId", type: "String" },
      { name: "drivLicName", type: "String" },
      { name: "drivLicIdNum", type: "String" },
      { name: "tInstallFrom", type: "Timestamp" },
      { name: "tInstallTo", type: "Timestamp" },
      { name: "page", type: "Number" },
      { name: "pageSize", type: "Number" }
    ]
  }, //
  searchInsurance: {
    name: "搜索保单号的设备",
    path: contextPath + "v2/device/api/searchPolicyId.action",
    param: [{ name: "key", type: "String" }]
  },
  searchSellDev: {
    name: "搜索销售的设备",
    path: contextPath + "v2/sell/api/searchDevice.action",
    param: [{ name: "key", type: "String" }]
  },
  getPriceList: {
    name: "价格列表",
    path: contextPath + "v2/pay/api/goods.action",
    param: [{ name: "userId", type: "Number" }]
  }, //userId

  billSearch: {
    name: "搜索单号",
    path: contextPath + "v2/pay/api/rootSearch.action",
    param: [
      { name: "userId", type: "Number" },
      { name: "externalId", type: "String" },
      { name: "deviceImei", type: "String" },
      { name: "errOnly", type: "Boolean" },
      { name: "from", type: "Timestamp" },
      { name: "to", type: "Timestamp" },
      { name: "page", type: "Number" },
      { name: "pageSize", type: "Number" }
    ]
  }, //externalId deviceImei userId pageSize page  errOnly

  profitSearch: {
    name: "搜索利润单号",
    path: contextPath + "v2/pay/api/sellerSearch.action",
    param: [
      { name: "userId", type: "Number" },
      { name: "externalId", type: "String" },
      { name: "deviceImei", type: "String" },
      { name: "errOnly", type: "Boolean" },
      { name: "from", type: "Timestamp" },
      { name: "to", type: "Timestamp" },
      { name: "page", type: "Number" },
      { name: "pageSize", type: "Number" }
    ]
  }, //externalId deviceImei userId pageSize page  errOnly

  feedbackList: {
    name: "反馈列表",
    path: contextPath + "v2/opinion/api/getOpinions.action",
    param: [
      { name: "page", type: "Number" },
      { name: "pageSize", type: "Number" }
    ]
  }, //page pageSize

  insuranceRecord1: {
    name: "保单修改记录",
    path: contextPath + "v2/policy/api/getModifyRecords.action",
    param: [
      { name: "deviceImei", type: "String" },
      { name: "policyId", type: "String" }
    ]
  }, //deviceImei policyId

  deviceList: {
    name: "设备列表",
    path: contextPath + "v2/monitor/api/updDevs.action",
    param: [
      { name: "userId", type: "Number" },
      { name: "page", type: "Number" },
      { name: "pageSize", type: "Number" },
      { name: "actionType", type: "String" }
    ]
  }, //userId
  searchDevList: {
    name: "搜索设备列表",
    path: contextPath + "v2/monitor/api/schDevs.action",
    param: [{ name: "userId", type: "Number" }, { name: "key", type: "String" }]
  }, //userId key

  runStay: {
    name: "运行总览停留",
    path: contextPath + "v2/summary/runStay.action",
    param: [
      { name: "userId", type: "Number" },
      { name: "deviceImei", type: "String" },
      { name: "t_start", type: "Timestamp" },
      { name: "t_end", type: "Timestamp" },
      { name: "page", type: "Number" },
      { name: "pageSize", type: "Number" }
    ]
  }, //t_start t_end page pageSize deviceImei
  runAll: {
    name: "运行总览",
    path: contextPath + "v2/summary/runAll.action",
    param: [
      { name: "userId", type: "Number" },
      { name: "t_start", type: "Timestamp" },
      { name: "t_end", type: "Timestamp" },
      { name: "page", type: "Number" },
      { name: "pageSize", type: "Number" }
    ]
  }, //t_start t_end page pageSize deviceImei
  runOverspeed: {
    name: "运行总览超速",
    path: contextPath + "v2/summary/runOverspeed.action",
    param: [
      { name: "userId", type: "Number" },
      { name: "deviceImei", type: "String" },
      { name: "t_start", type: "Timestamp" },
      { name: "t_end", type: "Timestamp" },
      { name: "page", type: "Number" },
      { name: "pageSize", type: "Number" }
    ]
  }, //t_start t_end page pageSize deviceImei
  runMileage: {
    name: "运行总览里程",
    path: contextPath + "v2/summary/runMileage.action",
    param: [
      { name: "userId", type: "Number" },
      { name: "deviceImei", type: "String" },
      { name: "t_start", type: "Timestamp" },
      { name: "t_end", type: "Timestamp" },
      { name: "page", type: "Number" },
      { name: "pageSize", type: "Number" }
    ]
  }, //t_start t_end page pageSize deviceImei
  runACC: {
    name: "运行总览ACC",
    path: contextPath + "v2/summary/accRecord.action",
    param: [
      { name: "userId", type: "Number" },
      { name: "deviceImei", type: "String" },
      { name: "t_start", type: "Timestamp" },
      { name: "t_end", type: "Timestamp" },
      { name: "page", type: "Number" },
      { name: "pageSize", type: "Number" }
    ]
  },

  alarmAll: {
    name: "报警总览",
    path: contextPath + "v2/summary/alarmAll.action",
    param: [
      { name: "userId", type: "Number" },
      { name: "deviceImei", type: "String" },
      { name: "t_start", type: "Timestamp" },
      { name: "t_end", type: "Timestamp" },
      { name: "page", type: "Number" },
      { name: "pageSize", type: "Number" }
    ]
  }, //t_start t_end page pageSize deviceImei
  alarmDevice: {
    name: "报警总览报警详情",
    path: contextPath + "v2/summary/alarmDevice.action",
    param: [
      { name: "userId", type: "Number" },
      { name: "deviceImei", type: "String" },
      { name: "t_start", type: "Timestamp" },
      { name: "t_end", type: "Timestamp" },
      { name: "page", type: "Number" },
      { name: "pageSize", type: "Number" },
      { name: "alertTypeId", type: "Number" }
    ]
  }, //t_start t_end page pageSize deviceImei
  devModel: {
    name: "设备类型",
    path: contextPath + "v2/monitor/all_dev/models.action",
    param: []
  },
  devStatistics: {
    name: "设备统计数量",
    path: contextPath + "v2/monitor/monitor_device_statistics.action",
    param: [
      { name: "userId", type: "Number" },
      { name: "model", type: "String" },
      { name: "startImportTime", type: "Timestamp" },
      { name: "endImportTime", type: "Timestamp" },
      { name: "isContainSub", type: "Boolean" }
    ]
  },
  statisticDevices: {
    name: "设备统计具体数据",
    path:
      contextPath +
      "v2/monitor/export/monitor_device_statistics_message.action",
    param: [
      { name: "userId", type: "Number" },
      { name: "model", type: "String" },
      { name: "startImportTime", type: "Timestamp" },
      { name: "endImportTime", type: "Timestamp" },
      { name: "statisticsType", type: "String" },
      { name: "page", type: "Number" },
      { name: "pageSize", type: "Number" },
      { name: "isContainSub", type: "Boolean" }
    ]
  }
};
